import request from '@/utils/request'

// 查询信号灯控制列表
export function listSignallightcontrol(query) {
  return request({
    url: '/fzyscontrol/runcontrolmanage/signallightcontrol/list',
    method: 'get',
    params: query
  })
}

// 查询信号灯控制详细
export function getSignallightcontrol(id) {
  return request({
    url: '/fzyscontrol/runcontrolmanage/signallightcontrol/' + id,
    method: 'get'
  })
}

// 新增信号灯控制
export function addSignallightcontrol(data) {
  return request({
    url: '/fzyscontrol/runcontrolmanage/signallightcontrol',
    method: 'post',
    data: data
  })
}

// 修改信号灯控制
export function updateSignallightcontrol(data) {
  return request({
    url: '/fzyscontrol/runcontrolmanage/signallightcontrol',
    method: 'put',
    data: data
  })
}

// 删除信号灯控制
export function delSignallightcontrol(id) {
  return request({
    url: '/fzyscontrol/runcontrolmanage/signallightcontrol/' + id,
    method: 'delete'
  })
}
